﻿using MathExpression;

namespace SimplexSolver
{
    /// <summary>
    /// Represents solution as one point
    /// </summary>
    public class SingleSolution : ISolution
    {
        public IMathExpression Value { get; private set; }
        
        public IMathExpression[] X { get; private set; }

        public SingleSolution(IMathExpression value, IMathExpression[] x)
        {
            X = (IMathExpression[]) x.Clone();
            Value = value.Clone();
        }
        
        public ISolution Clone()
        {
            return new SingleSolution(Value, X);
        }
    }
}